class CourseOrgPage():
    def __init__(self, driver):
        self.driver = driver

    # 添加按钮
    def get_add_buttom_element(self):
        return self.driver.find_element_by_class_name('addlink')

    """表元素"""
    # 机构名称
    def get_form_org_name_element(self):
        return self.driver.find_element_by_name('name')

    # 机构描述
    def get_form_org_desc_element(self):
        return self.driver.find_element_by_name('desc')

    # 机构名称
    def get_form_org_tag_elemeent(self):
        return self.driver.find_element_by_name('tag')

    # 机构类型
    def get_form_org_catgory1_element(self):
        return self.driver.find_element_by_name('catgory')

    def get_form_catgory2_element(self):
        return self.driver.find_element_by_xpath('//*[@id="id_catgory"]/option[2]')

    # 点击数
    def get_form_click_num_element(self):
        return self.driver.find_element_by_name('click_nums')

    # 收藏数
    def get_form_fav_num_element(self):
        return self.driver.find_element_by_name('fav_nums')

    # 封面图片
    def get_form_image_element(self):
        return self.driver.find_element_by_name('image')

    # 机构地址
    def get_form_address_element(self):
        return self.driver.find_element_by_name('address')

    # 所在城市
    def get_form_city1_element(self):
        return self.driver.find_element_by_name('city')

    def get_form_city2_element(self):
        return self.driver.find_element_by_xpath('//*[@id="id_city"]/option[3]')

    # 学习人数
    def get_form_student_element(self):
        return self.driver.find_element_by_name('students')

    # 课程数
    def get_form_course_num_element(self):
        return self.driver.find_element_by_name('course_nums')

    # 保存按钮
    def get_save_element(self):
        return self.driver.find_element_by_name('_save')

    # 保存成功后的提示
    def get_add_tishi_element(self):
        return self.driver.find_element_by_class_name('success')
